<template>
  <div>
    <!-- <el-form
      :model="ruleForm"
      :rules="rules"
      label-position="left"
      ref="ruleFormRef"
      label-width="80"
    > -->
    <el-row class="info-container" :gutter="20">
      <el-col :span="12">
        <el-form-item label="服务商" prop="providerName">
          <el-input
            v-model="ruleForm.providerName"
            maxlength="50"
            show-word-limit
          />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="联系人" prop="providerPerson">
          <el-input
            v-model="ruleForm.providerPerson"
            maxlength="50"
            show-word-limit
          />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="电话" prop="providerPhone">
          <el-input
            v-model="ruleForm.providerPhone"
            maxlength="13"
            show-word-limit
          />
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="邮箱" prop="providerEmail">
          <el-input
            v-model="ruleForm.providerEmail"
            maxlength="100"
            show-word-limit
          />
        </el-form-item>
      </el-col>
    </el-row>
    <!-- </el-form> -->
  </div>
</template>

<script>
import { defineComponent, watch, computed, ref } from "vue";

export default defineComponent({
  name: "WebviewRegisterEditProviderForm",
  props: {
    modelValue: {
      type: Object,
      default: () => {},
    },
    rules: {
      type: Object,
      default: () => {},
    },
  },
  emits: ["update:modelValue"],
  setup(props, { emit }) {
    const ruleForm = computed({
      get: () => props.modelValue,
      set: (val) => emit("update:modelValue", val),
    });
    return {
      ruleForm,
    };
  },
});
</script>

<style lang="scss" scoped>
.info-container {
  padding: 15px 0;
  padding-left: 10px;
  .el-col {
    margin-top: 15px;
  }
  .info-block {
    label {
      font-size: 14px;
      font-weight: 600;
      color: #3c475d;
      line-height: 20px;
    }
    span {
      font-size: 14px;
      font-weight: 400;
      color: #3c475d;
      line-height: 20px;
    }
  }
}
</style>
